﻿@model smp.ButterflyCakes.Models.ViewModels.Order.EditMenuView
<ul class="nav nav-list">
    <li class=""><a id="attachments" href="#">Attachments</a></li>
    <li class="divider"></li>
    @foreach (var group in Model.Components)
    {
        <li class="nav-header">@group.Title</li>
        foreach (var stage in group.Stages)
        {
            if (stage.IsActive)
            {
                <li class="active returnToCurrent"><a href="#" stage="@stage.Stage" stageid="@stage.StageId">@stage.Title</a> </li>
            }
            else
            {
                <li><a class="jumpstage" href="#" stage="@stage.Stage" stageid="@stage.StageId">@stage.Title</a> </li>
            }
        }
        <li class="divider"></li>
    }
</ul>
<div id="dropdownmenuitems">
    @foreach (var group in Model.Components)
    {
        <li class="dropdown-submenu"><a tabindex="-1" href="#">@group.Title</a>
            <ul class="dropdown-menu">
                @foreach (var stage in group.Stages)
                {
                    <li><a class="jumpstage" stageid="@stage.StageId" href="#">@stage.Title</a> </li>
                }
            </ul>
        </li>
    }
</div>
